

<div style="height: 100%;overflow-y: auto;">




<ul class="layui-nav layui-nav-tree" >
<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->

<?
$quanxian=explode(",",$_SESSION['quanxian']);

?>






    <?foreach ($plate as $k=>$v) {
        if(($v['status']=='public') and
            ((in_array($k,$quanxian)) or (in_array("admin",$quanxian))) and
            ($v['setting']['sidebar_show'] != '隐藏')
        ){?>
            <li>


                    <li class="layui-nav-item <? if($_REQUEST['now_extender']==$k){echo "layui-nav-itemed";}?> <?echo $k?>">
                    <a href="javascript:;"><i class="layui-icon"><?echo $v['icon']?></i><?echo $v['name']?></a>
                    <dl class="layui-nav-child">

                    <!--        二级菜单循环-->
                        <?foreach ($v['sidebar'] as $k2=>$v2) {

                            if((
                                    (in_array($v2['permission'],$quanxian)) &&
                                    ($v2['permission'])
                                )  or (in_array("admin",$quanxian)) )
                            {?>
                                <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>

                             <?}
                             elseif(!$v2['permission'])
                             {?>
                                 <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>
                             <?}?>
                        <?}?>

                    </dl>
                    </li>
            </li>
        <?}?>
<?}?>


  
</ul>


</div>
